<ion-view view-title="我的评价" class="comment">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	<ion-content>
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		
		<!--没有数据-->
		<div class="noData" ng-if="firstHide&&!datas">
			<img src="./img/guilin/other/icon_noComment@2x.png" />
			<div class="tip">暂时没有评价哦！</div>
		</div>

		<div class="item evaluate" ng-repeat="order in datas">
			<div class="buyersinfo item-input">
				<img src="./img/guilin/common/icon_shop@2x.png" class="buyersimg" />
				<div on-tap="onshow_first(order.store_id)">
					<span class="buyersname">{{order.store_name}}</span>
					<img src="./img/guilin/common/icon_right@2x.png" class="rightimg" />
				</div>
				<p class="buyersorder">订单号：{{order.discuss.order_id}}</p>
			</div>

			<div class="item shopbg">
				<div class="evaluateinfoframe">
					<img src="./img/guilin/comment/comment_good@2x.png" class="shopevaluateimg" ng-if="order.discuss.point==5" />
					<img src="./img/guilin/comment/comment_middle@2x.png" class="shopevaluateimg" ng-if="order.discuss.point==3" />
					<img src="./img/guilin/comment/comment_bad@2x.png" class="shopevaluateimg" ng-if="order.discuss.point==1" />
					<span class="shopevaluatetext" ng-if="order.discuss.point==5">好评</span>
					<span class="shopevaluatetext" ng-if="order.discuss.point==3">中评</span>
					<span class="shopevaluatetext" ng-if="order.discuss.point==1">差评</span>
				</div>
				<div on-tap="go_product(order.goods_id)">
					<img src="{{order.image}}" class="shopimg" />
					<div class="item shopframe">
						<p class="shoptitle">{{order.goods_name}}</p>
						<!--<p class="shopModel">型号：1<span style="padding-left: 10px;">规格：2</span></p>-->
					</div>
				</div>
			</div>
			
			<!--初评-->
			<div class="item evaluateframe">
				<span class="evaluatetext">初评</span>
				<span class="evaluatetime">{{order.discuss.time}}</span>
				<p class="evaluateinfo">{{order.discuss.comment}}</p>
				<div class="padding-0 showimg">
					<!--晒图，最多4张-->		
					<div class="showimgdiv" ng-repeat="img in order.discuss.image track by $index" on-tap="showBigImg(img)">
						<img src="{{img}}" />
					</div>					
				</div>
				<div ng-if="order.discuss.image" style="margin-bottom: 5px;"></div>
				<span class="evaluatesee" on-tap="showOtherCom($event,order.discuss.id,1)" ng-if="order.discuss.answer.length>0">查看回复
					<img src="./img/guilin/common/icon_down@2x.png" ng-if="arrowimg1"/>
					<img src="./img/guilin/common/icon_up@2x.png" ng-if="!arrowimg1"/>
				</span>
				<div class="item storereplyframe otherComs" ng-repeat="answer in order.discuss.answer" style="display: none;">
					<span class="storereplytext">店家回复</span>
					<span class="storereplytime">{{answer.time}}</span>
					<p class="storereplyinfo">{{answer.comment}}</p>
				</div>
				<div class="item butframe" ng-if="order.buttons.length>0">
					<p class="replybtn" on-tap="buttonEvent(button.id,order.discuss.id)" ng-repeat="button in order.buttons" style="color: {{button.color}};border-color:{{button.color}};margin-right: {{$index>0?5:0}}px;">{{button.name}}</p>
				</div>
			</div>
			
			<!--追评-->
			<div class="item evaluateframe" ng-repeat="addition in order.discuss.addition" style="border-top: rgb(232,232,232) solid 1px;">
				<span class="evaluatetext">追评</span>
				<span class="evaluatetime">{{addition.time}}</span>
				<p class="evaluateinfo">{{addition.comment}}</p>
				<div class="padding-0 showimg">
					<!--晒图，最多4张-->		
					<div class="showimgdiv" ng-repeat="img in addition.image track by $index" on-tap="showBigImg(img)">
						<img src="{{img}}" />
					</div>					
				</div>
				<span class="evaluatesee" on-tap="showOtherCom($event,order.discuss.addition[0].time,'2')" ng-if="order.discuss.addition[0].answer.length>0">查看回复
					<img src="./img/guilin/common/icon_down@2x.png" ng-if="arrowimg2"/>
					<img src="./img/guilin/common/icon_up@2x.png" ng-if="!arrowimg2"/>
				</span>
				<div class="item storereplyframe otherComs" ng-repeat="answer in addition.answer" style="display: none;">
					<span class="storereplytext">店家回复</span>
					<span class="storereplytime">{{answer.time}}</span>
					<p class="storereplyinfo">{{answer.comment}}</p>
				</div>
			</div>
		</div>
		<ion-infinite-scroll ng-if="!isLoad && nPage < tPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
</ion-view>